package com.avic.modules.record.service;

import com.avic.common.service.BaseService;
import com.avic.modules.mapping.domain.DataMapping;
import com.avic.modules.record.domain.AlarmInformation;
import com.avic.modules.record.service.dto.AlarmInformationQueryCriteria;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * @author zhangzikang
 * @date 2022-08-14
 */
public interface AlarmInformationService extends BaseService<AlarmInformation> {

    /**
     * 查看报警记录
     * @param pageable 分页数据
     * @return
     */
    Map<String,Object> callThePolice(Pageable pageable);

    /**
     * 查看全部报警信息
     * @param criteria
     * @param pageable
     * @return
     */
    Map<String,Object> queryAll(AlarmInformationQueryCriteria criteria, Pageable pageable);

    /**
     * 添加报警/任务记录
     */
    void addAlarmInformation(List<DataMapping> list,String equipId);

    /**
     * 处理报警信息
     * @param alarmInformation
     */
    void updateAlarmInformation(AlarmInformation alarmInformation);
}
